package chances.epg.api.controller.model;

import java.util.List;

import chances.epg.data.PageBean;

public class ResultSetResponse<T> extends RestResponse {
	PageInfo pageInfo;
	List<T> resultSet;

	
	public ResultSetResponse(int status, List<T>  result ,PageBean pageBean){
		super(status);
		this.resultSet = result;
		if(pageBean != null){
		    this.pageInfo = new PageInfo(pageBean);
		}
	}
	

	public List<T> getResultSet() {
		return resultSet;
	}

	
	public PageInfo getPageInfo() {
		return pageInfo;
	}


	public void setResultSet(List<T> resultSet) {
		this.resultSet = resultSet;
	}

}
